#ifndef CONNECTOR_H
#define CONNECTOR_H

#include <QObject>
#include <QIODevice>
#include "links/linkfactory.h"
#include "proxies/proxyfactory.h"
#include <QTcpSocket>

class Connector : public QObject
{
    Q_OBJECT
    QTcpSocket *dev;
    LinkFactory* lFactory;
    ProxyFactory* pFactory;
    QString message;
public:
    explicit Connector(LinkFactory*, ProxyFactory*, QObject *parent = 0);
    ~Connector();
signals:
    void connErr(QAbstractSocket::SocketError);
public slots:
    void received();
    void connectEd(QString ip);
    void error(QAbstractSocket::SocketError err);

};

#endif // CONNECTOR_H
